<template>
	<div class="city-picker">
    <el-cascader v-model="value_arr"  :level="level" :options="cityData"  @change="$emit('getAddress',value_arr)"></el-cascader>
	</div>
</template>

<script>

import cityData from "./city_data.js";

export default {
  name: "cityPicker",
  data () {
    return {
      cityData:cityData,
		value_arr:this.value
    }
  },
  props: {
    value: {
      type: Array,
      default () {
        return []
      }
    },
    level: {
      type: Number,
      default: 3
    }
  },
  computed: {

  },
  created () {
    const that = this;

  },
  methods: {

  }
};
</script>


